﻿using System;

namespace ClassMembers
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Person xz = new Person();
            xz.Name = "小张";

            Person xw = new Person();
            xw.Name = "小王";

            Person xh = xz + xw;
            Console.WriteLine(xh.Name);
        }
    }

    public class Person
    {
        public string Name { get; set; }

        public static Person operator +(Person p1,Person p2)
        {
            Person p3 = new Person();
            p3.Name = p1.Name+ p2.Name.Substring(1);
            return p3;
        }
    }
}
